/**
 * 
 */
package kr.co.insoft.driver.model;

import java.io.Serializable;
import java.util.List;

import kr.co.insoft.driver.util.NullExcludeTransformer;
import flexjson.JSONSerializer;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
public class SecurityModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -241785158573370929L;

	String description;
	String groupId;
	String groupName;
	String ownerId;
	String vpcId;
	List<?> ipPermissions;

	public SecurityModel() {

	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the groupId
	 */
	public String getGroupId() {
		return groupId;
	}

	/**
	 * @param groupId
	 *            the groupId to set
	 */
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	/**
	 * @return the groupName
	 */
	public String getGroupName() {
		return groupName;
	}

	/**
	 * @param groupName
	 *            the groupName to set
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	/**
	 * @return the ownerId
	 */
	public String getOwnerId() {
		return ownerId;
	}

	/**
	 * @param ownerId
	 *            the ownerId to set
	 */
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	/**
	 * @return the vpcId
	 */
	public String getVpcId() {
		return vpcId;
	}

	/**
	 * @param vpcId
	 *            the vpcId to set
	 */
	public void setVpcId(String vpcId) {
		this.vpcId = vpcId;
	}

	/**
	 * @return the ipPermissions
	 */
	public List<?> getIpPermissions() {
		return ipPermissions;
	}

	/**
	 * @param ipPermissions
	 *            the ipPermissions to set
	 */
	public void setIpPermissions(List<?> ipPermissions) {
		this.ipPermissions = ipPermissions;
	}

	public String toString() {
		return (new JSONSerializer())
				.transform(new NullExcludeTransformer(), void.class)
				.exclude("*.class").deepSerialize(this);
	}
}
